package cn.wolfcode.Enum;

import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
public enum ConsumptionReportEnums {
    BUSINESS("门店","b.name"),
    YEAR("年","DATE_FORMAT(c.pay_time,'%Y')"),
    MONTH("月","DATE_FORMAT(c.pay_time,'%Y%m')"),
    DAY("日","DATE_FORMAT(c.pay_time,'%Y%m%d')");

    private String name;
    private String sql;

    ConsumptionReportEnums(String name, String sql) {
        this.name = name;
        this.sql = sql;
    }
}
